package com.stars.module.holiday.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.stars.module.holiday.entity.StarHoliday;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;


@Mapper
public interface HolidayMapper extends BaseMapper<StarHoliday> {

    @Delete("DELETE FROM STAR_HOLIDAY_DAYSET WHERE HOLIDAY = #{date}")
    Boolean deleteHoliday(String date);

    @Delete("DELETE FROM STAR_HOLIDAY_DAYSET WHERE YEAR = #{year}")
    Boolean deleteHolidayByYear(String year);
}
